#pragma once
#include "Common.h"

class PageCache
{
public:
	static PageCache* GetInstance()
	{
		return &_SInst;
	}
	Spon* NewSpon(size_t k);
	std::mutex _mtx;
private:
	SponList sponlist[NPAGES];
	PageCache()
	{

	}
	PageCache(const PageCache&) = delete;
	static PageCache _SInst;
};